local ItemData = require("bag.Proto").ItemData
local BossHurtNet = require("boss.Proto").BossHurtNet
local HeroSimple = require("hero.Proto").HeroSimple
local RoleBase = require("role.Proto").RoleBase 

FriendNet = {
    {"roleBase",    1,    RoleBase},
	{"online",		1,		"byte"},		-- 是否在线
	{"logoutSecond",1,		 "int"},			-- 最近一次离线时间距离当前的秒数	
    {"getStatus",   1,		"byte"},		-- 是否有红心可以领取
    {"giveStatus",  1,		"byte"},		-- 是否已赠送此玩家
}

FriendBillReward = {
    {"lvMin",		1,		"int"},		-- 
	{"lvMax",		1,		"int"},		-- 名字
    {"itemList",	3,		ItemData},		-- 名字
}

-- 好友列表
CG_FRIEND_LIST = {}
GC_FRIEND_LIST = {
	{"friends",		30,		FriendNet},
    {"questNum",    1,		"byte"},
    {"heartCnt",    1,		"byte"},
    {"isEnd",       1,		"byte"},
}

-- 系统推荐好友列表
CG_FRIEND_RECOMMEND_LIST = {}
GC_FRIEND_RECOMMEND_LIST = {
	{"friends",		10,		FriendNet},	
}

-- 审批(申请)列表
CG_FRIEND_REQUEST_LIST = {}
GC_FRIEND_REQUEST_LIST = {
	{"friends",		20,		FriendNet},	
}

-- 拒绝或者成为好友后，从审批列表中删除
GC_FRIEND_REQUEST_DEL = {
	{"uuid",		1,		"string"},	
}

-- 添加好友
CG_FRIEND_ADD = {
	{"uuid",		1,		"string"},
}
GC_FRIEND_ADD_OK = {
	{"uuid",		1,		"string"},		
}

-- 通知玩家有人加他
GC_FRIEND_ADD_NOTIFY = {
	{"friend",		1,		FriendNet},		
}

-- 同意好友申请
CG_FRIEND_AGREE = {
	{"uuid",		1,		"string"},		-- 	
}
-- 拒绝好友申请
CG_FRIEND_REFUSE = {
	{"uuid",		1,		"string"},		-- 	
}

-- 拒绝所有好友申请
CG_FRIEND_REFUSE_ALL = {}

-- 同意所有好友申请
CG_FRIEND_AGREE_ALL = {}

-- 添加好友成功，通知双方
GC_FRIEND_ADD = {
	{"friend",		1,		FriendNet},		
}

-- 删除好友
CG_FRIEND_DEL = {
	{"uuid",		1,		"string"},		-- 		
}

-- 从好友列表中删除该好友信息
GC_FRIEND_DEL_NOTIFY = {
	{"uuid",		1,		"string"},		-- 	
}

-- 一键领取+回礼红心
CG_FRIEND_HEARTONETOUCH = {
}

-- 赠送好友红心
CG_FRIEND_SENDHEART = {
    {"uuid",		1,		"string"}, -- "" 一键赠送
}

-- 领取好友红心
CG_FRIEND_GETHEART = {
    {"uuid",		1,		"string"},
}

-- 界面更新
GC_FRIEND_UPDATE = {
	{"friend",		1,		FriendNet},	
}

GC_FRIEND_GET_ALL_HEART = {
    {"num",     1,  "int"},
}

CG_FRIEND_FIND = {
    {"val",1,"string"},                -- 玩家名字
}

GC_FRIEND_FIND = {
	{"friendList",		50,		FriendNet},	    -- 好友列表
}

-- 黑名单
CG_FRIEND_BLACK_QUERY = {}
GC_FRIEND_BLACK_QUERY = {
    {"lists",      30,      FriendNet},     
}

--拉黑
CG_FRIEND_BLACK_ADD = {
    {"uuid",     1,  "string"},    
}
GC_FRIEND_BLACK_ADD = {
    {"add",     1,  FriendNet},
}

--移除黑名单
CG_FRIEND_BLACK_DEL = {
    {"uuid",     1,  "string"}, -- ""时一键移除 
}
GC_FRIEND_BLACK_DEL = {
    {"uuid",     1,  "string"}, -- ""时一键移除 
}

